home *** CD-ROM | disk | FTP | other *** search
- global gPrefsVarObj, gIsSoundEffectsOn, gIsRolloverTextOn, gIsAlertMessagesOn
-
- on InitButtons
- ButtonList = [:]
- closeb = 3
- addProp(ButtonList, closeb, new(script("close box prefs"), "close box", "global", closeb, the loc of sprite closeb))
- b1 = 5
- b2 = 6
- addProp(ButtonList, b1, new(script("sound effects radio button"), "soundon", "internal", b1, the loc of sprite b1, 1))
- addProp(ButtonList, b2, new(script("sound effects radio button"), "soundoff", "internal", b2, the loc of sprite b2, 0))
- SoundButtonGroup = new(script("radio button group"))
- setGroup(getaProp(ButtonList, b1), SoundButtonGroup)
- setGroup(getaProp(ButtonList, b2), SoundButtonGroup)
- b3 = 7
- b4 = 8
- addProp(ButtonList, b3, new(script("rollover text radio button"), "overtexton", "internal", b3, the loc of sprite b3, 1))
- addProp(ButtonList, b4, new(script("rollover text radio button"), "overtextoff", "internal", b4, the loc of sprite b4, 0))
- RolloverButtonGroup = new(script("radio button group"))
- setGroup(getaProp(ButtonList, b3), RolloverButtonGroup)
- setGroup(getaProp(ButtonList, b4), RolloverButtonGroup)
- b5 = 9
- b6 = 10
- addProp(ButtonList, b5, new(script("alert messages radio button"), "alerton", "internal", b5, the loc of sprite b5, 1))
- addProp(ButtonList, b6, new(script("alert messages radio button"), "alertoff", "internal", b6, the loc of sprite b6, 0))
- AlertButtonGroup = new(script("radio button group"))
- setGroup(getaProp(ButtonList, b5), AlertButtonGroup)
- setGroup(getaProp(ButtonList, b6), AlertButtonGroup)
- spkr = 11
- addProp(ButtonList, spkr, new(script("speaker icon"), "speaker", "internal", spkr, the loc of sprite spkr))
- addProp(ButtonList, 13, new(script("prefs slider"), "slider", "internal", 13, the locH of sprite 13, 65, 199, 1, 8, 1, 8, 0, 0, #upOrLeft))
- repeat with rc in ButtonList
- Inscope(rc)
- end repeat
- if gIsSoundEffectsOn then
- simulateClickOn(getaProp(ButtonList, b1))
- else
- simulateClickOn(getaProp(ButtonList, b2))
- end if
- if gIsRolloverTextOn then
- simulateClickOn(getaProp(ButtonList, b3))
- else
- simulateClickOn(getaProp(ButtonList, b4))
- end if
- if gIsAlertMessagesOn then
- simulateClickOn(getaProp(ButtonList, b5))
- else
- simulateClickOn(getaProp(ButtonList, b6))
- end if
- CurrVolume = the soundLevel + 1
- setThumb(getaProp(ButtonList, 13), CurrVolume)
- SetButtonList(gPrefsVarObj, ButtonList)
- PointingCursor = [member("point hand"), member("point hand mask")]
- repeat with rc in [closeb, spkr]
- set the cursor of sprite rc to PointingCursor
- end repeat
- end
-